package com.sina.shop.manage.form;

import com.sina.shop.web.Form;
import com.sina.shop.manage.storage.StorageLevel;
import org.springframework.web.multipart.MultipartFile;

import javax.naming.Name;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * created  on 07/06/2017.
 */
public class StorageForm extends Form {

    @NotNull
    @Size(max = 60)
    private String directory;

    @NotNull
    private StorageLevel storageLevel;

    @NotNull
    private MultipartFile file;

    private Long id;

    private String name;

    private Integer sort;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public String getDirectory() {
        return directory;
    }

    public void setDirectory(String directory) {
        this.directory = directory;
    }

    public MultipartFile getFile() {
        return file;
    }

    public void setFile(MultipartFile file) {
        this.file = file;
    }

    public StorageLevel getStorageLevel() {
        return storageLevel;
    }

    public void setStorageLevel(StorageLevel storageLevel) {
        this.storageLevel = storageLevel;
    }
}
